// ./modules/form.js
const state = {
  isRefreshFormList: false
};

const mutations = {
  setIsRefreshFormList(state, payload) {
    state.isRefreshFormList = payload
  }
}
const actions = {
  // 假设这里有异步操作
  asyncSetIsRefreshFormList({ commit }, payload) {
    // 模拟异步操作
    return new Promise((resolve) => {
      setTimeout(() => {
        commit('setIsRefreshFormList', payload);
        resolve();
      }, 1000);
    });
  }
};
export default {
  namespaced: true, //命名空间
  state,
  mutations,
  actions
}